/* 
 * USB CID Driver - 1.0
 *
 * Copyright (C) 2006 Hansung Chun (adol17@dreamwiz.com)
 *
 *     This file is part of USB CID Driver.
 * 
 *     USB CID Driver is free software; you can redistribute it and/or
 *     modify it under the terms of the GNU General Public License as
 *     published by the Free Software Foundation, version 2.
 *
 */

#ifndef _USBCID_H_
#define _USBCID_H_

#define USBCID_BUFF_SIZE 64

typedef struct {
	unsigned int pipe;
	unsigned int length;
	char buff[USBCID_BUFF_SIZE];
} __attribute__ ((packed)) cid_ctrl_info;

#define IOCTL_EZUSB_MAGIC 'E'

#define IOCTL_EZUSB_READ_CID	_IOR(IOCTL_EZUSB_MAGIC, 0, cid_ctrl_info)
#define IOCTL_EZUSB_BULK_READ	_IOR(IOCTL_EZUSB_MAGIC, 1, cid_ctrl_info)
#define IOCTL_EZUSB_BULK_WRITE	_IOW(IOCTL_EZUSB_MAGIC, 2, cid_ctrl_info)

#define IOCTL_EZUSB_MAXNR 3

#endif

